import * as actionTypes from './actionTypes'
const defaultState = {
    articleList: [],
    recommendList: [],
    topicList: []
}

export default (state = defaultState, action) => {
    switch (action.type){
        case actionTypes.GET_HOME_DATA:
    return state.merge({
        articleList: action.data.articleList,
        recommendList: action.data.recommendList,
        topicList: action.data.topicList,
    })
    }
    return state;
}